package cn.yunhe.entity;



import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.sql.Date;
import java.util.Arrays;
import java.util.Map;

/**
 * Created by Administrator on 2018/5/22.
 */
public class Problem implements Serializable {
    private int pro_id;
    private String pro_name;
    private String pro_choice;
    private Type type;
    private Point point;
    private int grade;
    private Teacher teacher;
    private Date date;
    private Lib lib;
    private String p_true;
    private String true_res;
    private int true_hot;
    //选项集合--用于接受数据库选项
    private Map pro_mapname;
    //用于接受img
    private Map<String,String> pro_img;
    private MultipartFile[] file;

    public Problem() {
        super();
    }


    public Problem(String pro_name, String pro_choice, Type type, Point point, int grade, Teacher teacher, Date date, Lib lib, String p_true, String true_res, int true_hot) {
        this.pro_name = pro_name;
        this.pro_choice = pro_choice;
        this.type = type;
        this.point = point;
        this.grade = grade;
        this.teacher = teacher;
        this.date = date;
        this.lib = lib;
        this.p_true = p_true;
        this.true_res = true_res;
        this.true_hot = true_hot;
    }

    public Problem(Date date, int grade, Lib lib, String p_true, Point point, String pro_choice, int pro_id, Map pro_mapname, String pro_name, Teacher teacher, int true_hot, String true_res, Type type) {
        this.date = date;
        this.grade = grade;
        this.lib = lib;
        this.p_true = p_true;
        this.point = point;
        this.pro_choice = pro_choice;
        this.pro_id = pro_id;
        this.pro_mapname = pro_mapname;
        this.pro_name = pro_name;
        this.teacher = teacher;
        this.true_hot = true_hot;
        this.true_res = true_res;
        this.type = type;
    }

    public MultipartFile[] getFile() {
        return file;
    }

    public void setFile(MultipartFile[] file) {
        this.file = file;
    }

    public Map<String, String> getPro_img() {
        return pro_img;
    }

    public void setPro_img(Map<String, String> pro_img) {
        this.pro_img = pro_img;
    }

    public int getPro_id() {
        return pro_id;
    }

    public void setPro_id(int pro_id) {
        this.pro_id = pro_id;
    }

    public String getPro_name() {
        return pro_name;
    }

    public void setPro_name(String pro_name) {
        this.pro_name = pro_name;
    }

    public String getPro_choice() {
        return pro_choice;
    }

    public void setPro_choice(String pro_choice) {
        this.pro_choice = pro_choice;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public Point getPoint() {
        return point;
    }

    public void setPoint(Point point) {
        this.point = point;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Lib getLib() {
        return lib;
    }

    public void setLib(Lib lib) {
        this.lib = lib;
    }

    public String getP_true() {
        return p_true;
    }

    public void setP_true(String p_true) {
        this.p_true = p_true;
    }

    public String getTrue_res() {
        return true_res;
    }

    public void setTrue_res(String true_res) {
        this.true_res = true_res;
    }

    public int getTrue_hot() {
        return true_hot;
    }

    public void setTrue_hot(int true_hot) {
        this.true_hot = true_hot;
    }

    public Map getPro_mapname() {
        return pro_mapname;
    }

    public void setPro_mapname(Map pro_mapname) {
        this.pro_mapname = pro_mapname;
    }

    @Override
    public String toString() {
        return "Problem{" +
                "date=" + date +
                ", pro_id=" + pro_id +
                ", pro_name='" + pro_name + '\'' +
                ", pro_choice='" + pro_choice + '\'' +
                ", type=" + type +
                ", point=" + point +
                ", grade=" + grade +
                ", teacher=" + teacher +
                ", lib=" + lib +
                ", p_true='" + p_true + '\'' +
                ", true_res='" + true_res + '\'' +
                ", true_hot=" + true_hot +
                ", pro_mapname=" + pro_mapname +
                ", pro_img=" + pro_img +
                ", file=" + Arrays.toString(file) +
                '}';
    }
}
